package com.pos.clothes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Cancel {

    public Cancel(Integer userid, Integer idorder, Integer normid, Integer serialnumber, Integer number, Float total, Date time, String note) {
        this.userid = userid;
        this.idorder = idorder;
        this.normid = normid;
        this.serialnumber = serialnumber;
        this.number = number;
        this.total = total;

        this.note = note;

        this.time = time;
    }

    public Cancel() {

    }

    Integer cancelid;

    public Integer getCancelid() {
        return cancelid;
    }

    public void setCancelid(Integer cancelid) {
        this.cancelid = cancelid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getIdorder() {
        return idorder;
    }

    public void setIdorder(Integer idorder) {
        this.idorder = idorder;
    }

    public Integer getNormid() {
        return normid;
    }

    public void setNormid(Integer normid) {
        this.normid = normid;
    }

    public Integer getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(Integer serialnumber) {
        this.serialnumber = serialnumber;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Float getTotal() {
        return total;
    }

    public void setTotal(Float total) {
        this.total = total;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    Integer userid;
    Integer idorder;
    Integer normid;
    Integer serialnumber;
    Integer number;
    Float total;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date time;
    String note;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    User user;

    public Norms getNorms() {
        return norms;
    }

    public void setNorms(Norms norms) {
        this.norms = norms;
    }

    Norms norms;

}
